home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_oth
/
fatdos
/
fatd3.doc
< prev
next >
Wrap
Text File
|
1988-04-14
|
4KB
|
165 lines
FAT-DOS ISEMM PAGE K-1
ISEMM - Determines wheter of not the EMM manager(device driver) is
present.
integer*2 Status
call isEMM(Status)
call with:
nothing.
returns:
Status = 0 EMM manager is not installed.
-1 Emm manager is installed.
EMMGMS - Get EMM manager status. Use this before doing any other EMM work.
integer*2 Status
call EMMGMS(Status)
call with:
nothing.
returns:
Status = 0 EMM manager is o.k. to use.
128 internal EMM software error.
129 hardware error
EMMGPF - Get the EMM page frame segment address.
integer*2 PFSeg,Ier
call EMMgpf(PFSeg,Ier)
call with:
nothing.
returns:
PFSeg = Segment address of page frame.
Ier = error code
0 normal return, EMM is alright.
128 EMM internal error.
129 EMM hardware error.
132 function undefined.
FAT-DOS 1.0 EMMGNP PAGE K-2
EMMGNP - Get the total number of logical pages in expanded memory, and
the nmber of unallocated pages.
integer*2 Free,Total,Ier
call EMMgnp(Free,Total,Ier)
call with:
nothing.
returns:
Free = Number of unallocated pages.
Total = Total number of expaned memory pages in system.
Ier = error code
0 normal return, EMM is o.k.
128 EMM software error.
129 EMM hardware error.
132 function invalid.
EMMGHA - Get an EMM handle and allocate expanded memory as 16k logical
pages.
integer*2 Npages,Handle,Ier
call EMMgha(Npages,Handle,Ier)
call with:
Npages = Number of 16k pages desired.
returns:
Handle = Epanded memory page handle.
Ier = Error Code
0 normal return, EMM is o.k.
80h EMM software error
81h EMM hardware error
84h EMM function invalid
85H EMM handle not available
87h EMM request for more pages than physically exist.
Non allocated
88h EMM request for more pages than are available.
Non allocated
89h EMM zero pages requested.
FAT-DOS 1.0 EMMMAP PAGE K-3
EMMMAP - Map physical pages in the Page Frame Segment to logical pages
in Expanded Memory. Once the Physical/Logical mapping has
been established yoy need only write to the physical pages,
and the data is automatically moved to expanded memory.
integer*2 PhysPage,LogPage,Handle,Ier
call EMMmap(PhysPage,LogPage,Handle,Ier)
call with:
PhysPage= Physical Page from Page Fram Segment to map into
LogPage, 0-3
LogPage = Logical Page in expanded memory to map into PhysPage.
Handle = Handle of previously
returns:
Ier = 0 normal return
= 80H=128 internal EMM software error
81H=129 hardware error
84h=132 function not defined
83h invalid handle
8ah page not in range of handle.
8bh Physical page not in range 0-3.
EMMRHM - Release Handle an Memory associated with that handle.
integer*2 Handle,Ier
call EMMrhm(Handle,Ier)
call with:
Handle = EMM handle from previous call to EMMgha().
returns:
Ier = 0 normal return, memory & handle released.
80h EMM software error
81h EMM hardware error
83h invalid handle
FAT-DOS 1.0 EMMVER PAGE K-4
EMMVER - Get the EMM version number.
integer*2 major,minor
call EMMver(major,minor)
call with:
nothing
returns:
Major = Integer part of version number, i.e. 3 or 4.
Minor = Fractional part of version number, i.e 2 or 0.
EMMGNH - Get the number of active EMM Handles.
integer*2 Nhandle,Ier
call EMMgnh(Nhandle,Ier)
call with:
nothing.
returns:
Nhandle = Number of active EMM handles.
Ier = Error code
0 normal return, function worked.
80h EMM software error.
81h EMM hardware error.